import { http } from '@/utils/http/axios';

export function getCompanyAll() {
  return http.request({
    url: '/sys/company/list',
    method: 'GET',
  });
}
/**
 * @description: 公司列表
 */
export function getCompanyList(params) {
  return http.request({
    url: '/sys/company',
    method: 'GET',
    params,
  });
}
/**
 * @description: 公司详情
 */
export function getCompanyInfo(params) {
  return http.request({
    url: '/sys/company/info',
    method: 'GET',
    params,
  });
}
/**
 * @description: 公司新增
 */
export function createCompany(data) {
  return http.request({
    url: '/sys/company',
    method: 'POST',
    data,
  });
}
/**
 * @description: 公司修改
 */
export function updateCompany(data) {
  return http.request({
    url: '/sys/company',
    method: 'PUT',
    data,
  });
}
/**
 * @description: 删除公司
 */
export function deleteCompany(params) {
  return http.request({
    url: '/sys/company',
    method: 'DELETE',
    params,
  });
}
